-- GENERATED SPELL FOR [Chimaerok Devourer] --


function spell0_12802(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_12802', 601, 1)
end

function spell1_12802(pUnit, Event) --@Fatal Bite,Heal--
pUnit:FullCastSpellOnTarget(20539,pUnit)
pUnit:RegisterEvent('Sorts_12802', 590, 1)
end

function Sorts_12802(pUnit, Event)
local choix_sorts_12802 = math.random(0, 1)
if choix_sorts_12802 == 0 then
pUnit:RegisterEvent('spell0_12802', 1, 1)
end
if choix_sorts_12802 == 1 then
pUnit:RegisterEvent('spell1_12802', 1, 1)
end
end

function mob12802_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12802', math.random(1500, 3000), 1)
end

function mob12802_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12802_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12802_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12802, 1, 'mob12802_Action')
RegisterUnitEvent(12802, 2, 'mob12802_Leave')
RegisterUnitEvent(12802, 3, 'mob12802_Kill')
RegisterUnitEvent(12802, 4, 'mob12802_Die')
